﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<ManageModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	<%: Resources.All_Applicant_List%>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
	<div class="maincontent">
		<div id="tab">
			<ul>
				<%--<li rel="viewgroup"><%:Html.ActionLink("View Group", "Users", "Manage", new { category = "group" }, null)%></li>--%>
				<li rel="viewcompany" >
					<%:Html.ActionLink(Resources.All_User_List, "Users", "Manage", new { category = "company" }, null)%></li>
				<li rel="createuser">
					<%:Html.ActionLink(Resources.All_Activate_List, "Users", "Manage", new { category = "create" }, null)%></li>
				<li rel="viewgroup" class="current"><%:Html.ActionLink(Resources.All_Applicant_List, "Users", new { category = "new" })%></li>

			</ul>
		</div>
		<div id="tabcontent">
			<div class="tab" id="viewcompany">
				<div class="" id="users">
					<h2>
						<%using (Html.BeginForm("users", "manage", FormMethod.Get))
						  {%>
						<%: Resources.All_Applicant_List%><div class="searchbox">
							<input name="key" type="text" class="searchbox" value="<%:Model.key %>"/>
							<input type="submit" value="GO" name="" class="searchbutton">
						</div>
						<% } %>
					</h2>
					<div id="datagrid">
						<% using (Ajax.BeginForm("AllowOrRefuseUsers", "manage", new AjaxOptions { HttpMethod = "POST", UpdateTargetId = "template", Confirm = "Are You Sure to do this action" }, FormMethod.Post))
						   {%>
						<%  Html.RenderPartial("datagrid");
						%>
						<%  } %>
					</div>
				</div>
			</div>
		</div>
	</div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="HeaderContent" runat="server">
	<link href="<%:Url.Content("~/Content/css/createuser.css")%>" rel="stylesheet" type="text/css" />
	<script src="<%:Url.Content("~/Content/js/jquery.alcatel.datagrid.js")%>"></script>
	<script src="<%:Url.Content("~/Content/js/jquery.alcatel.viewcompany.js")%>"></script>
	<script type="text/javascript">
		$(document).ready(function () {
			var $this = $("#manage_CSS")
			$this.addClass("current")
		})
	</script>
</asp:Content>
